package com.lhc.event;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @author LuHuanCheng
 * 类说明：享学监听器2 无@Component 在上下文添加这个监听类context.addApplicationListener(new EnjoyApplicationListener2());
 */
@Component
public class EnjoyApplicationListener2 implements ApplicationListener<EnjoyEvent2> {

    public void onApplicationEvent(EnjoyEvent2 event) {
        System.out.println("== 监听到享学事件EnjoyEvent2，do something");
    }
}